package com.ims.business.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ims.common.annotation.DictTag;
import com.ims.common.matatype.impl.BaseModel;
import java.io.Serializable;

/**
 * <p>
 * 卡分类
 * </p>
 *
 * @author 陈骑元
 * @since 2019-07-07
 */
@TableName("t_card_catalog")
public class CardCatalog extends BaseModel<CardCatalog> {

    private static final long serialVersionUID = 1L;

    /**
     * 类型编号
     */
    @TableId("type_id")
    private String typeId;
    /**
     * 卡的类型 1月卡2季卡3半年卡4年卡
     */
    @DictTag(type="card_type")
    @TableField("card_type")
    private String cardType;
    @TableField("card_amount")
    private Integer cardAmount;
    /**
     * 状态 0停用1启用
     */
    @DictTag(type="status")
    private String status;
    /**
     * 排序
     */
    @TableField("sort_no")
    private Integer sortNo;
    /**
     * 备注
     */
    @TableField("card_remark")
    private String cardRemark;
    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新人
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public Integer getCardAmount() {
        return cardAmount;
    }

    public void setCardAmount(Integer cardAmount) {
        this.cardAmount = cardAmount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getCardRemark() {
        return cardRemark;
    }

    public void setCardRemark(String cardRemark) {
        this.cardRemark = cardRemark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.typeId;
    }

    @Override
    public String toString() {
        return "CardCatalog{" +
        "typeId=" + typeId +
        ", cardType=" + cardType +
        ", cardAmount=" + cardAmount +
        ", status=" + status +
        ", sortNo=" + sortNo +
        ", cardRemark=" + cardRemark +
        ", createBy=" + createBy +
        ", createTime=" + createTime +
        ", updateBy=" + updateBy +
        ", updateTime=" + updateTime +
        "}";
    }
}
